import { _decorator, Component, Node } from 'cc';
import { UILayerMgr } from './UILayerMgr';
import { AudioMgr } from '../utils/AudioMgr';
const { ccclass, property } = _decorator;

@ccclass('LayerBase')
export class LayerBase extends Component {
    
    init(somedData=null){
        
    }

    onclickCloseBtn(){
        AudioMgr.ins.playOneShot("audio/clickBtn",0.8);

        UILayerMgr.getIns.closeUILayer(this.node.name);
    }
}


